package com.jsh.erp.datasource.mappers.personMappers;

import com.jsh.erp.datasource.entities.personEntity.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 胡振明
 * @date 2022-11-24 21:33:22
 * @description
 */
@Repository
public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> getAllDepartmentsByParentId(Integer pid);

    void addDep(Department dep);

    void deleteDepById(Department dep);

    List<Department> getAllDepartmentsWithOutChildren();
}
